Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add now-passing test for #3133 #4231

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

JooHyukKim
Copy link
Member

@JooHyukKim JooHyukKim commented Nov 28, 2023

This PR addes a test case proving #3133 is fixed for at least Jackson 2.15 or later version.

@cowtowncoder cowtowncoder merged commit 556a5bb into FasterXML:2.15 Nov 28, 2023
4 checks passed
@cowtowncoder
Copy link
Member

Thank you @JooHyukKim !

// case 1 : type first
String ordering1 = a2q("{'type': 'MAP','map': { 'doubleValue': 0.1 }}");
TestMapContainer model1 = mapper.readValue(ordering1, TestMapContainer.class);
Assertions.assertTrue(model1.getMap().get("doubleValue") instanceof Double);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be better as assertEquals(0.1d, model1.getMap().get("doubleValue"))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At that time, I was unsure whether to closely align with the test case from #3133.
In hindsight, I should've gone with your suggestion. Thankss 🙏🏼

@JooHyukKim JooHyukKim deleted the Add-passing-test-for-3133 branch December 3, 2023 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants